import Request from '@/utils/request'

class Api {
  /**
   * 获取版本信息
   * @param {*} data
   * @param options
   */
  getVersion(data, options) {
    return Request.newRequest({
      url: '/version',
      method: 'post',
      data
    }, options)
  }

  /**
   * 登录
   * @param {*} data
   * @param options
   */
  login(data, options) {
    return Request.newRequest({
      url: '/verifyUser',
      method: 'post',
      data
    }, options)
  }

  /**
   * 服务接口
   */
  getMainServiceUrl() {
    return process.env.VUE_APP_BASE_API
  }

  /**
   * 下载接口
   */
  getOriginalDownloadServiceUrl() {
    return process.env.VUE_APP_DOWNLOAD_SERVICE_API
  }

  /**
   * 获取文件下载URL
   * @param {*} code
   */
  getDownloadServiceUrl(code) {
    return localStorage.getItem('downloadURL') + code
  }

  /**
   * 获取缩略图下载URL
   * @param {*} code
   * @param width 图片宽度
   */
  getImageUrlByThumbnail(code, width) {
    return localStorage.getItem('downloadURL') + code + '&w=' + (undefined !== width ? width : 800)
  }

  /**
   * 获取车辆列表
   */
  getCarList(data, options) {
    return Request.newRequest({
      url: '/user/car/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取车辆信息
   */
  getCarDetail(data, options) {
    return Request.newRequest({
      url: '/user/car/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加车辆
   * @param {*} data
   * @param options
   */
  addCar(data, options) {
    return Request.newRequest({
      url: '/user/car/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加车辆
   * @param {*} data
   * @param options
   */
  editCar(data, options) {
    return Request.newRequest({
      url: '/user/car/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取配送线路规划单列表
   * @param {*} data
   * @param options
   */
  getDeliveryLineList(data, options) {
    return Request.newRequest({
      url: '/user/delivery/line/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取线路规划单详情
   * @param {*} data
   * @param options
   */
  getDeliveryLineInfo(data, options) {
    return Request.newRequest({
      url: '/user/delivery/line/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加线路规划单
   * @param {*} data
   * @param options
   */
  addDeliveryLineInfo(data, options) {
    return Request.newRequest({
      url: '/user/delivery/line/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改线路规划单
   * @param {*} data
   * @param options
   */
  updateDeliveryLine(data, options) {
    return Request.newRequest({
      url: '/user/delivery/line/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除配送线路规划单
   * @param {*} data
   * @param options
   */
  deleteDeliveryLine(data, options) {
    return Request.newRequest({
      url: '/user/delivery/line/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取机构列表
   * @param {*} data
   * @param options
   */
  getOrganizationList(data, options) {
    return Request.newRequest({
      url: '/user/organization/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取店铺机构列表
   * @param {*} data
   * @param options
   */
  getStoreOrganizationList(data, options) {
    return Request.newRequest({
      url: '/user/organization/store/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取供应目标机构列表
   * @param {*} data
   * @param options
   */
  getSupplyTargetOrganizationList(data, options) {
    return Request.newRequest({
      url: '/user/organization/supply/target/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取员工列表
   * @param {*} data
   * @param options
   */
  getUserList(data, options) {
    return Request.newRequest({
      url: '/user/user/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取仓库列表
   * @param {*} data
   * @param options
   */
  getWarehouseList(data, options) {
    return Request.newRequest({
      url: '/user/warehouse/info/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取仓库信息
   * @param {*} data
   * @param options
   */
  getWarehouseInfo(data, options) {
    return Request.newRequest({
      url: '/user/warehouse/info/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 编辑仓库信息
   * @param {*} json
   * @param {*} file
   * @param {*} options
   */
  editWarehouseInfo(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('logoFile', file)
    }
    return Request.newRequest({
      url: '/user/warehouse/info/update',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 获取省市区列表
   * @param {*} data
   * @param options
   */
  getLocationList(data, options) {
    return Request.newRequest({
      url: '/user/geoArea/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取陈列位置列表
   * @param {*} data
   * @param options
   */
  getShelvesList(data, options) {
    return Request.newRequest({
      url: '/user/shelves/list',
      method: 'post',
      data
    }, options)
  }

  getWarehouseUserPickResponsibleRangeList(data, options) {
    return Request.newRequest({
      url: '/user/shelves/warehouse/user/pickResponsibleRange/list',
      method: 'post',
      data
    }, options)
  }

  getWarehouseUserPickResponsibleRangeAllUserList(data, options) {
    return Request.newRequest({
      url: '/user/shelves/warehouse/user/pickResponsibleRange/allUser/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除仓库人员分拣负责范围
   * @param {*} data
   * @param options
   */
  batchDeleteShelvesWarehouseUserPickResponsibleRange(data, options) {
    return Request.newRequest({
      url: '/user/shelves/warehouse/user/pickResponsibleRange/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加仓库人员的分拣负责范围
   * @param {*} data
   * @param options
   */
  batchAddShelvesWarehouseUserPickResponsibleRange(data, options) {
    return Request.newRequest({
      url: '/user/shelves/warehouse/user/pickResponsibleRange/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取陈列位置设置
   * @param {*} data
   * @param options
   */
  getShelvesSettingList(data, options) {
    return Request.newRequest({
      url: '/user/shelves/setting/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改陈列位置设置
   * @param {*} data
   * @param options
   */
  updateShelvesSetting(data, options) {
    return Request.newRequest({
      url: '/user/shelves/setting/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量保存陈列位置分拣顺序
   * @param {*} data
   * @param options
   */
  batchUpdateShelvesPickOrderNumber(data, options) {
    return Request.newRequest({
      url: '/user/shelves/batchUpdatePickOrderNumber',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取物流箱列表
   * @param {*} data
   * @param options
   */
  getLogisticsBoxList(data, options) {
    return Request.newRequest({
      url: '/user/logisticsBox/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加物流箱
   * @param {*} data
   * @param options
   */
  addLogisticsBox(data, options) {
    return Request.newRequest({
      url: '/user/logisticsBox/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改物流箱
   * @param {*} data
   * @param options
   */
  userLogisticsBoxUpdate(data, options) {
    return Request.newRequest({
      url: '/user/logisticsBox/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购（补货）订单列表
   * @param {*} data
   * @param options
   */
  getPurchaseOrderList(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取销量补货商品列表
   * @param {*} data
   * @param options
   */
  getUserSalesQuantityReplenishmentGoodsList(data, options) {
    return Request.newRequest({
      url: '/user/sales/quantity/replenishment/goods/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加到购物车
   * @param {*} data
   * @param options
   */
  batchAddBuyCarGoods2(data, options) {
    return Request.newRequest({
      url: '/user/buyCarGoods/batchAdd2',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改购物车商品
   * @param {*} data
   * @param options
   */
  updateBuyCarGoods(data, options) {
    return Request.newRequest({
      url: '/user/buyCarGoods/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取购物车商品列表
   * @param {*} data
   * @param options
   */
  getCartGoodsList(data, options) {
    return Request.newRequest({
      url: '/user/buyCarGoods/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量删除销量补货商品
   * @param {*} data
   * @param options
   */
  batchDeleteSalesQuantityReplenishmentGoods(data, options) {
    return Request.newRequest({
      url: '/user/sales/quantity/replenishment/goods/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取收货地址列表
   * @param {*} data
   * @param options
   */
  getUserOrganizationDeliveryAddressList(data, options) {
    return Request.newRequest({
      url: '/user/organization/deliveryAddress/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量删除已添加的购物车商品
   * @param {*} data
   * @param options
   */
  batchDeleteCartsGoods(data, options) {
    return Request.newRequest({
      url: '/user/buyCarGoods/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加补货订单
   * @param {*} data
   * @param options
   */
  batchAddPurchaseOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购（补货）订单明细列表
   * @param {*} data
   * @param options
   */
  getPurchaseOrderItemList(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/item/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出采购（补货）订单明细列表
   * @param {*} data
   * @param options
   */
  exportPurchaseOrderItemList(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/item/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量一审采购(补货)单
   * @param {*} data
   * @param options
   */
  batchFirstAuditPurchaseOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/batchPreAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量二审采购(补货)单
   * @param {*} data
   * @param options
   */
  batchSecondAuditPurchaseOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/batchAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量三审采购(补货)单
   * @param {*} data
   * @param options
   */
  batchFinalAuditPurchaseOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/batchFinalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量接采购(补货)单
   * @param {*} data
   * @param options
   */
  batchReceivePurchaseOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/batchReceive',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量审核采购(补货)单
   * @param {*} data
   * @param options
   */
  batchCancelPurchaseOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/batchCancel',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购订单信息
   * @param {*} data
   * @param options
   */
  getPurchaseOrderDetail(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出补货（采购）订单详情
   * @param {*} data
   * @param options
   */
  exportPurchaseOrderDetail(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/detail/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取通用字段列表
   * @param {*} data
   * @param options
   */
  getCommonFieldList(data, options) {
    return Request.newRequest({
      url: '/user/common/field/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取供应给我的商品列表
   * @param {*} data
   * @param options
   */
  getSupplyGoodsListByToMe(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/listByToMe',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取我供应的商品列表
   * @param {*} data
   * @param options
   */
  getSupplyGoodsListByMeSupply(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/listByMeSupply',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量更改供应商品状态
   * @param {*} data
   * @param options
   */
  batchUpdateSupplyGoodsState(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/batchUpdateState',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量预审核供应商品
   * @param {*} data
   * @param options
   */
  batchPreAuditSupplyGoods(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/batchPreAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量审核供应商品
   * @param {*} data
   * @param options
   */
  batchAuditSupplyGoods(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/batchAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量复审核供应商品
   * @param {*} data
   * @param options
   */
  batchFinalAuditSupplyGoods(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/batchFinalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取供应商品供应范围
   * @param {*} data
   * @param options
   */
  getSupplyGoodsSupplyRange(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/range/detail',
      method: 'post',
      data
    }, options)
  }

  setSupplyGoodsSupplyRange(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/range/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品列表
   * @param {*} data
   * @param options
   */
  getGoodsList(data, options) {
    return Request.newRequest({
      url: '/user/goods/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加商品
   * @param {*} json
   * @param {*} files
   * @param options
   */
  addGoods(json, files, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    files.forEach((file, index) => {
      param.append('file' + index, file)
    })
    return Request.newRequest({
      url: '/user/goods/add',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 添加加工商品关联
   * @param {*} data
   * @param options
   */
  addProcessGoodsRelated(data, options) {
    return Request.newRequest({
      url: '/user/process/goods/related/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改加工商品关联
   * @param {*} data
   * @param options
   */
  updateProcessGoodsRelated(data, options) {
    return Request.newRequest({
      url: '/user/process/goods/related/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取加工商品关联列表
   * @param {*} data
   * @param options
   */
  getProcessGoodsRelatedList(data, options) {
    return Request.newRequest({
      url: '/user/process/goods/related/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取加工商品关联详情
   * @param {*} data
   * @param options
   */
  getProcessGoodsRelatedDetail(data, options) {
    return Request.newRequest({
      url: '/user/process/goods/related/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品描述
   * @param {*} data
   * @param options
   */
  getGoodsDescriptionDetail(data, options) {
    return Request.newRequest({
      url: '/user/goods/description/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加机构
   * @param {*} data
   * @param options
   */
  addOrganizationInfo(data, options) {
    return Request.newRequest({
      url: '/user/organization/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取品牌列表
   * @param {*} data
   * @param options
   */
  getBrandList(data, options) {
    return Request.newRequest({
      url: '/user/brand/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 编辑机构信息
   * @param {*} data
   * @param options
   */
  editOrganizationInfo(data, options) {
    return Request.newRequest({
      url: '/user/organization/updateField',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取机构信息
   * @param {*} data
   * @param options
   */
  getOrganizationInfo(data, options) {
    return Request.newRequest({
      url: '/user/organization/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取机构图片列表
   * @param {*} data
   * @param options
   */
  getOrganizationPictureList(data, options) {
    return Request.newRequest({
      url: '/user/organization/picture/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加机构图片
   * @param {*} json
   * @param {*} file
   * @param options
   */
  addOrganizationPicture(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/organization/picture/add',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 编辑机构图片
   * @param {*} json
   * @param {*} file
   * @param options
   */
  editOrganizationPicture(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/organization/picture/update',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 删除机构图片
   * @param {*} data
   * @param options
   */
  deleteOrganizationPicture(data, options) {
    return Request.newRequest({
      url: '/user/organization/picture/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 编辑商品信息
   * @param {*} data
   * @param options
   */
  editGoodsInfo(data, options) {
    return Request.newRequest({
      url: '/user/goods/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品信息
   * @param {*} data
   * @param options
   */
  getGoodsDetail(data, options) {
    return Request.newRequest({
      url: '/user/goods/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 根据条码获取商品信息
   * @param {*} data
   * @param {*} options
   */
  getGoodsByBarCode(data, options) {
    return Request.newRequest({
      url: '/user/goods/getByBarCode',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新商品描述
   * @param {*} json
   * @param {*} file
   * @param options
   */
  userGoodsDescriptionUpdate(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      console.log(file)
      for (let i = 0; i < file.length; i++) {
        if (file[i].file !== '' && file[i].file !== undefined) {
          param.append('file' + i, file[i].file)
        }
      }
    }
    console.log(param)
    return Request.newRequest({
      url: '/user/goods/description/update',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 添加商品图片
   * @param {*} json
   * @param {*} file
   * @param options
   */
  addGoodsPicture(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/goods/picture/add',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 删除商品图片
   * @param {*} data
   * @param options
   */
  deleteGoodsPicture(data, options) {
    return Request.newRequest({
      url: '/user/goods/picture/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取我供应的机构列表
   * @param {*} data
   * @param options
   */
  getSupportSupplyOrganizationByMe(data, options) {
    return Request.newRequest({
      url: '/user/supplier/related/list/toMe',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品类别
   * @param {*} data
   * @param options
   */
  getGoodsCategoryList(data, options) {
    return Request.newRequest({
      url: '/user/goods/category/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加供应的商品
   * @param {*} data
   * @param options
   */
  batchAddSupplyGoods(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 可供商品申请导入
   * @param {*} json
   * @param {*} file
   * @param options
   */
  importSupplyGoods(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/supplyGoods/import',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 可供给我商品导出
   * @param {*} data
   * @param options
   */
  exportSupplyGoodsToMe(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/exportToMe',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取供应商品信息
   * @param {*} data
   * @param options
   */
  getSupplyGoodsDetail(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改供应商品信息
   * @param {*} data
   * @param options
   */
  updateSupplyGoods(data, options) {
    return Request.newRequest({
      url: '/user/supplyGoods/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取供应商列表
   * @param {*} data
   * @param options
   */
  getSupplierList(data, options) {
    return Request.newRequest({
      url: '/user/supplier/related/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 商品导入
   * @param {*} json
   * @param {*} file
   * @param options
   */
  importGoods(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/goods/import',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 商品导出
   * @param {*} data
   * @param options
   */
  exportGoods(data, options) {
    return Request.newRequest({
      url: '/user/goods/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 商品图片导入
   * @param {*} json
   * @param {*} file
   * @param options
   */
  importGoodsPicture(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/goods/picture/import',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 根据机构获取权限列表
   * @param {*} data
   * @param options
   */
  getPermissionsByOrganizationType(data, options) {
    return Request.newRequest({
      url: '/user/permission/organization/default/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取用户权限列表
   * @param {*} data
   * @param options
   */
  getPermissionsByUser(data, options) {
    return Request.newRequest({
      url: '/user/user/permission/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新用户权限
   * @param {*} data
   * @param options
   */
  updateUserPermission(data, options) {
    return Request.newRequest({
      url: '/user/user/permission/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取岗位列表
   * @param {*} data
   * @param options
   */
  listUserPosition(data, options) {
    return Request.newRequest({
      url: '/user/position/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取部门列表
   * @param {*} data
   * @param options
   */
  listUserDepartment(data, options) {
    return Request.newRequest({
      url: '/user/department/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加部门
   * @param {*} data
   * @param options
   */
  addUserDepartment(data, options) {
    return Request.newRequest({
      url: '/user/department/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改部门
   * @param {*} data
   * @param options
   */
  updateDepartment(data, options) {
    return Request.newRequest({
      url: '/user/department/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加岗位
   * @param {*} data
   * @param options
   */
  addPosition(data, options) {
    return Request.newRequest({
      url: '/user/position/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改岗位
   * @param {*} data
   * @param options
   */
  userPositionUpdate(data, options) {
    return Request.newRequest({
      url: '/user/position/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加商品类别
   * @param {*} json
   * @param {*} file
   * @param options
   */
  addGoodsCategory(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/goods/category/add',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 修改商品类别信息
   * @param {*} json
   * @param {*} file
   * @param options
   */
  editGoodsCategory(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/goods/category/update',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 预审核采购(补货)单
   * @param {*} data
   * @param options
   */
  deleteGoodsCategory(data, options) {
    return Request.newRequest({
      url: '/user/goods/category/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 预审核采购(补货)单
   * @param {*} data
   * @param options
   */
  preAuditPurchaseOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/preAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 审核采购(补货)单
   * @param {*} data
   * @param options
   */
  auditPurchaseOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/audit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 根据条码获取商品信息
   * @param {*} data
   * @param options
   */
  goodsGetByBarCode(data, options) {
    return Request.newRequest({
      url: '/user/goods/getByBarCode',
      method: 'post',
      data
    }, options)
  }

  /**
   * 采购无订单收货
   * @param {*} json
   * @param {*} file
   * @param options
   */
  purchaseOrderReceiptConfirmNoOrder(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      for (let i = 0; i < file.length; i++) {
        param.append('file' + i, file[i])
      }
    }
    return Request.newRequest({
      url: '/user/purchase/order/receiptConfirmNoOrder',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 采购（补货）订单收货
   * @param {*} json
   * @param {*} file
   * @param options
   */
  userPurchaseOrderReceiptConfirm(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      for (let i = 0; i < file.length; i++) {
        param.append('file' + i, file[i])
      }
    }
    return Request.newRequest({
      url: '/user/purchase/order/receiptConfirm',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 批量修改商品类别
   * @param {*} data
   * @param options
   */
  batchEditGoodsCategory(data, options) {
    return Request.newRequest({
      url: '/user/goods/batchUpdateGoodsCategory',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加员工
   * @param {*} data
   * @param options
   */
  userUserAdd(data, options) {
    return Request.newRequest({
      url: '/user/user/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取员工信息
   * @param {*} data
   * @param options
   */
  getUserDetail(data, options) {
    return Request.newRequest({
      url: '/user/user/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改员工信息
   * @param {*} data
   * @param options
   */
  userUserUpdate(data, options) {
    return Request.newRequest({
      url: '/user/user/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改自己的密码
   * @param {*} data
   * @param options
   */
  updatePassword(data, options) {
    return Request.newRequest({
      url: '/user/user/my/updatePassword',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取我的机构信息
   * @param {*} data
   * @param options
   */
  getMyOrganizationDetail(data, options) {
    return Request.newRequest({
      url: '/user/organization/my',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加供应商
   * @param {*} data
   * @param options
   */
  addSupplierInfo(data, options) {
    return Request.newRequest({
      url: '/user/organization/supplier/info/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改供应商
   * @param {*} data
   * @param options
   */
  editSupplierInfo(data, options) {
    return Request.newRequest({
      url: '/user/organization/supplier/info/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 查看供应商
   * @param {*} data
   * @param options
   */
  getSupplierInfo(data, options) {
    return Request.newRequest({
      url: '/user/organization/supplier/info/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 设置供应商供应范围
   * @param {*} data
   * @param options
   */
  updateSupplierSupplyRange(data, options) {
    return Request.newRequest({
      url: '/user/supplier/supply/range/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取供应商供应范围
   * @param {*} data
   * @param options
   */
  getSupplierSupplyRange(data, options) {
    return Request.newRequest({
      url: '/user/supplier/supply/range/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量修改商品属性
   * @param {*} data
   * @param options
   */
  batchChangeGoodsAttribute(data, options) {
    return Request.newRequest({
      url: '/user/goods/batchUpdateField',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品库存统计信息
   * @param {*} data
   * @param options
   */
  getGoodsStockStatics(data, options) {
    return Request.newRequest({
      url: '/user/goods/getGoodsStockData',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取库存调整单列表
   * @param {*} data
   * @param options
   */
  getStockAdjustmentOrderList(data, options) {
    return Request.newRequest({
      url: '/user/goods/stock/adjustment/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取库存调整单列表
   * @param {*} data
   * @param options
   */
  getStockAdjustmentOrderInfo(data, options) {
    return Request.newRequest({
      url: '/user/goods/stock/adjustment/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加库存调整单
   * @param {*} data
   * @param options
   */
  addStockAdjustmentOrder(data, options) {
    return Request.newRequest({
      url: '/user/goods/stock/adjustment/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改库存调整单
   * @param {*} data
   * @param options
   */
  editStockAdjustmentOrder(data, options) {
    return Request.newRequest({
      url: '/user/goods/stock/adjustment/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 一审库存调整单
   * @param {*} data
   * @param options
   */
  firstAuditStockAdjustmentOrder(data, options) {
    return Request.newRequest({
      url: '/user/goods/stock/adjustment/firstAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 二审库存调整单
   * @param {*} data
   * @param options
   */
  secondAuditStockAdjustmentOrder(data, options) {
    return Request.newRequest({
      url: '/user/goods/stock/adjustment/secondAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 三审库存调整单
   * @param {*} data
   * @param options
   */
  finalAuditStockAdjustmentOrder(data, options) {
    return Request.newRequest({
      url: '/user/goods/stock/adjustment/finalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购（配送）差异单列表
   * @param {*} data
   * @param options
   */
  getPurchaseOrderDeliveryDifferenceList(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/deliveryDifference/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购（配送）差异单信息
   * @param {*} data
   * @param options
   */
  getPurchaseOrderDeliveryDifferenceDetail(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/deliveryDifference/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 预审核配送差异单
   * @param {*} data
   * @param options
   */
  userPurchaseOrderDeliveryDifferencePreAudit(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/deliveryDifference/preAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 审核配送差异单
   * @param {*} data
   * @param options
   */
  userPurchaseOrderDeliveryDifferenceAudit(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/deliveryDifference/audit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新补货订单打印时间
   * @param {*} data
   * @param options
   */
  userPurchaseOrderUpdateDistributorPrintTime(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/updateDistributorPrintTime',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新补货订单无漏单
   * @param {*} data
   * @param options
   */
  userPurchaseOrderUpdateNoMissingOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/updateNoMissingOrder',
      method: 'post',
      data
    }, options)
  }

  /**
   * 配送差异单赔付
   * @param {*} data
   * @param options
   */
  userPurchaseOrderDeliveryDifferenceCompensation(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/deliveryDifference/compensation',
      method: 'post',
      data
    }, options)
  }

  /**
   * 配送差异单完成赔付
   * @param {*} data
   * @param options
   */
  userPurchaseOrderDeliveryDifferenceOutOfSystemCompensation(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/deliveryDifference/outOfSystemCompensation',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购（配送）差异单状态
   * @param {*} data
   * @param options
   */
  userPurchaseOrderDeliveryDifferenceGetState(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/deliveryDifference/getState',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取上架商品列表
   * @param {*} data
   * @param options
   */
  getOnlineShoppingMallGoodsList(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取上架商品详情
   * @param {*} data
   * @param options
   */
  getOnlineShoppingMallGoodsDetail(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加上架商品
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsBatchAdd(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取线上商城商品上架范围机构列表
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsOrganizationList(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/organization/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加线上商城商品上架范围机构
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsOrganizationBatchAdd(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/organization/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量删除线上商城商品上架范围机构
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsOrganizationBatchDelete(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/organization/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量审核线上商城商品上架范围机构
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsOrganizationBatchBatchAudit(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/batchAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量预审核线上商城商品上架范围机构
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsOrganizationBatchPreAudit(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/batchPreAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量复审核线上商城商品上架范围机构
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsOrganizationBatchFinalAudit(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/batchFinalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 线上商品信息详情
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsDetail(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取线上商品微信小程序码
   * @param {*} data
   * @param options
   */
  getOnlineShoppingMallGoodsWeixinACode(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/getWeixinACode',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取线上小程序码
   * @param {*} data
   * @param options
   */
  getOnlineShoppingMallWeixinACode(data, options) {
    return Request.newRequest({
      url: '/user/getWeixinACode',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改线上商品信息
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsUpdate(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 销售订单列表
   * @param {*} data
   * @param options
   */
  getSalesOrderList(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加无人值守店铺
   * @param {*} data
   * @param options
   */
  batchAddUnmannedSalesMonitorResponsibility(data, options) {
    return Request.newRequest({
      url: '/user/unmanned/sales/monitor/responsibility/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量删除无人值守店铺
   * @param {*} data
   * @param options
   */
  batchDeleteUnmannedSalesMonitorResponsibility(data, options) {
    return Request.newRequest({
      url: '/user/unmanned/sales/monitor/responsibility/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取我的无人值守店铺列表
   * @param {*} data
   * @param options
   */
  getMyUnmannedSalesMonitorResponsibilityList(data, options) {
    return Request.newRequest({
      url: '/user/unmanned/sales/monitor/responsibility/list/my',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取无人值守店铺列表
   * @param {*} data
   * @param options
   */
  getUnmannedSalesMonitorResponsibilityList(data, options) {
    return Request.newRequest({
      url: '/user/unmanned/sales/monitor/responsibility/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取无人销售记录列表
   * @param {*} data
   * @param options
   */
  getUnmannedSalesRecordList(data, options) {
    return Request.newRequest({
      url: '/user/unmanned/sales/record/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取门禁设备列表
   * @param {*} data
   * @param options
   */
  getDeviceEntranceGuardList(data, options) {
    return Request.newRequest({
      url: '/user/device/entranceGuard/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 启用门禁扫码功能
   * @param {*} data
   * @param options
   */
  enableDeviceEntranceGuardScanCode(data, options) {
    return Request.newRequest({
      url: '/user/device/entranceGuard/scanCode/enable',
      method: 'post',
      data
    }, options)
  }

  /**
   * 禁用门禁扫码功能
   * @param {*} data
   * @param options
   */
  disableDeviceEntranceGuardScanCode(data, options) {
    return Request.newRequest({
      url: '/user/device/entranceGuard/scanCode/disable',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出销售订单
   * @param {*} data
   * @param options
   */
  exportSalesOrder(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出赊账销售订单
   * @param {*} data
   * @param options
   */
  exportOnCreditSalesOrder(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/exportOnCredit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取销售订单信息
   * @param {*} data
   * @param options
   */
  getSalesOrderDetail(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加销售订单合并付款
   * @param {*} json
   * @param {*} file
   * @param options
   */
  addSalesOrderMergePay(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      for (let i = 0; i < file.length; i++) {
        param.append('file' + i, file[i])
      }
    }
    return Request.newRequest({
      url: '/user/sales/order/merge/pay/add',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 获取销售订单合并支付列表
   * @param {*} data
   * @param options
   */
  getSalesOrderMergePayList(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/merge/pay/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取销售订单合并支付详情
   * @param {*} data
   * @param options
   */
  getSalesOrderMergePayDetail(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/merge/pay/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 销售退货订单列表
   * @param {*} data
   * @param options
   */
  getSalesOrderReturnList(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/return/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取销售退货订单信息
   * @param {*} data
   * @param options
   */
  getSalesOrderReturnDetail(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/return/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 销售退货订单列表明细
   * @param {*} data
   * @param options
   */
  getSalesOrderReturnItemList(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/return/item/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出销售退货订单列表明细
   * @param {*} data
   * @param options
   */
  exportSalesOrderReturnItemList(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/return/item/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 交易订单列表
   * @param {*} data
   * @param options
   */
  getTransactionRecordList(data, options) {
    return Request.newRequest({
      url: '/user/transactionRecord/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出交易订单
   * @param {*} data
   * @param options
   */
  exportTransactionRecord(data, options) {
    return Request.newRequest({
      url: '/user/transactionRecord/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 供应商订单发货
   * @param {*} data
   * @param options
   */
  userPurchaseOrderDeliveryOnlineOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/deliveryOnlineOrder',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量修改线上商城商品上架状态
   * @param {*} data
   * @param options
   */
  userOnlineShoppingMallGoodsBatchUpdateState(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/batchUpdateState',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取线上商城商品审核列表
   * @param {*} data
   * @param options
   */
  getOnlineShoppingMallGoodsListAudit(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/list/audit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取进货统计数据
   * @param {*} data
   * @param options
   */
  userReportReplenishmentStatisticDetail(data, options) {
    return Request.newRequest({
      url: '/user/report/replenishmentStatistic/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取进货统计数据列表
   * @param {*} data
   * @param options
   */
  getReportReplenishmentStatisticList(data, options) {
    return Request.newRequest({
      url: '/user/report/replenishmentStatistic/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取进货统计月度汇总数据
   * @param {*} data
   * @param options
   */
  userReportReplenishmentStatisticMonthAllTotalList(data, options) {
    return Request.newRequest({
      url: '/user/report/replenishmentStatistic/monthAllTotal/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取进货统计每日汇总数据
   * @param {*} data
   * @param options
   */
  userReportReplenishmentStatisticDayAllTotalList(data, options) {
    return Request.newRequest({
      url: '/user/report/replenishmentStatistic/dayAllTotal/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取打款记录数据
   * @param {*} data
   * @param options
   */
  userReportPaySettlementStatisticDetail(data, options) {
    return Request.newRequest({
      url: '/user/report/paySettlementStatistic/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新进货统计数据
   * @param {*} data
   * @param options
   */
  userReportReplenishmentStatisticUpdate(data, options) {
    return Request.newRequest({
      url: '/user/report/replenishmentStatistic/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新打款记录数据
   * @param {*} data
   * @param options
   */
  userReportPaySettlementStatisticUpdate(data, options) {
    return Request.newRequest({
      url: '/user/report/paySettlementStatistic/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取打款记录每日汇总数据
   * @param {*} data
   * @param options
   */
  getPaySettlementStatisticDayList(data, options) {
    return Request.newRequest({
      url: '/user/report/paySettlementStatistic/day/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取打款记录每日汇总数据
   * @param {*} data
   * @param options
   */
  getPayProfitSharingRecordList(data, options) {
    return Request.newRequest({
      url: '/user/pay/profitSharing/record/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取打款统计按机构和类别月度数据
   * @param {*} data
   * @param options
   */
  userReportPaySettlementStatisticByOrganizationAndSortMonthList(data, options) {
    return Request.newRequest({
      url: '/user/report/paySettlementStatistic/byOrganizationAndSort/month/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取打款统计按机构和类别每日数据
   * @param {*} data
   * @param options
   */
  getReportPaySettlementStatisticByOrganizationAndSortDayList(data, options) {
    return Request.newRequest({
      url: '/user/report/paySettlementStatistic/byOrganizationAndSort/day/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取店铺盈亏平衡月度数据
   * @param {*} data
   * @param options
   */
  getBreakEvenMonthList(data, options) {
    return Request.newRequest({
      url: '/user/report/break/even/month/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新店铺盈亏平衡月度数据
   * @param {*} data
   * @param options
   */
  updateBreakEvenMonth(data, options) {
    return Request.newRequest({
      url: '/user/report/break/even/month/updateAmount',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取店铺盈亏平衡每日数据
   * @param {*} data
   * @param options
   */
  getBreakEvenDayList(data, options) {
    return Request.newRequest({
      url: '/user/report/break/even/day/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出店铺盈亏数据
   * @param {*} data
   * @param options
   */
  exportBreakEvenMonth(data, options) {
    return Request.newRequest({
      url: '/user/report/break/even/month/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加采购订单
   * @param {*} data
   * @param options
   */
  userPurchaseOrderBatchAddBatchAdd(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取供应的商品库存明细列表
   * @param {*} data
   * @param options
   */
  userReportSupplyGoodsStockList(data, options) {
    return Request.newRequest({
      url: '/user/report/supply/goods/stock/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取分拣单列表
   * @param {*} data
   * @param options
   */
  userPurchaseOrderPickList(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/pick/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取进货统计月度状态数据
   * @param {*} data
   * @param options
   */
  userReportReplenishmentStatisticByStateMonthAllTotalList(data, options) {
    return Request.newRequest({
      url: '/user/report/replenishmentStatistic/byState/monthAllTotal/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取进货统计每日状态数据
   * @param {*} data
   * @param options
   */
  userReportReplenishmentStatisticByStateDayAllTotalList(data, options) {
    return Request.newRequest({
      url: '/user/report/replenishmentStatistic/byState/dayAllTotal/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取退货单列表
   * @param {*} data
   * @param options
   */
  getGoodsReturnList(data, options) {
    return Request.newRequest({
      url: '/user/goods/return/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取退货单详情
   * @param {*} data
   * @param options
   */
  getGoodsReturnDetail(data, options) {
    return Request.newRequest({
      url: '/user/goods/return/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 退货单入库
   * @param {*} data
   * @param options
   */
  putInStorageGoodsReturn(data, options) {
    if (undefined === options) {
      options = {}
    }
    options.showLoading = true
    options.showLoadingText = '正在提交...'
    return Request.newRequest({
      url: '/user/goods/return/putInStorage',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取退货单列表
   * @param {*} data
   * @param options
   */
  getGoodsReturnDifferenceList(data, options) {
    return Request.newRequest({
      url: '/user/goods/return/difference/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取退货单详情
   * @param {*} data
   * @param options
   */
  getGoodsReturnDifferenceDetail(data, options) {
    return Request.newRequest({
      url: '/user/goods/return/difference/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 三审退货差异
   * @param {*} data
   * @param options
   */
  finalAuditGoodsReturnDifference(data, options) {
    if (undefined === options) {
      options = {}
    }
    options.showLoading = true
    options.showLoadingText = '正在提交...'
    return Request.newRequest({
      url: '/user/goods/return/difference/finalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取缺货单列表
   * @param {*} data
   * @param options
   */
  userPurchaseOrderLackList(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/lack/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取缺货单信息
   * @param {*} data
   * @param options
   */
  userPurchaseOrderLackDetail(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/lack/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取营销活动列表
   * @param {*} data
   * @param options
   */
  getMarketingActivityList(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加营销活动
   * @param {*} data
   * @param options
   */
  addMarketingActivity(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取幸运大转盘选择优惠券
   * @param {*} data
   * @param options
   */
  getMarketingActivityCouponLucky(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/list/coupon/lucky',
      method: 'post',
      data
    }, options)
  }

  /**
   * 查询中奖记录列表
   * @param {*} data
   * @param options
   */
  getMarketingActivityLuckyRaffleList(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/lucky/raffle/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 查询幸运转盘抽奖情况统计
   * @param {*} data
   * @param options
   */
  getMarketingActivityLuckyRaffleStatList(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/lucky/raffle/stat/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 营销活动详情
   * @param {*} data
   * @param options
   */
  getMarketingActivityDetail(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取个性化配置列表
   * @param {*} data
   * @param options
   */
  getIndividuationConfigList(data, options) {
    return Request.newRequest({
      url: '/user/individuation/config/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除个性化配置列表
   * @param {*} data
   * @param options
   */
  deleteIndividuationConfig(data, options) {
    return Request.newRequest({
      url: '/user/individuation/config/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量删除个性化配置列表
   * @param {*} data
   * @param options
   */
  batchDeleteIndividuationConfig(data, options) {
    return Request.newRequest({
      url: '/user/individuation/config/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加个性化配置列表
   * @param {*} json
   * @param {*} files
   * @param options
   */
  batchAddIndividuationConfig2(json, files, options) {
    const param = new FormData() // 创建form对象
    if (undefined !== json) {
      param.append('json', JSON.stringify(json))
    }
    if (undefined !== files) {
      for (let i = 0; i < files.length; i++) {
        param.append('file' + i, files[i])
      }
    }
    return Request.newRequest({
      url: '/user/individuation/config/batchAdd2',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 加价购详情加价购商品列表
   * @param {*} data
   * @param options
   */
  userMarketingActivityRelatedGoodsList(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/related/goods/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改营销活动
   * @param {*} data
   * @param options
   */
  updateMarketingActivity(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除营销活动
   * @param {*} data
   * @param options
   */
  deleteMarketingActivity(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取营销活动商品列
   * @param {*} data
   * @param options
   */
  getMarketingActivityGoodsList(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/goods/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改营销活动商品
   * @param {*} data
   * @param options
   */
  updateMarketingActivityGoods(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/goods/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量删除营销活动商品
   * @param {*} data
   * @param options
   */
  batchDeleteMarketingActivityGoods(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/goods/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加营销活动商品
   * @param {*} data
   * @param options
   */
  batchAddMarketingActivityGoods(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/goods/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 参与活动店铺  获取列表
   * @param {*} data
   * @param options
   */
  getMarketingActivityOrganizationList(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/organization/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 参与活动店铺  批量添加：
   * @param {*} data
   * @param options
   */
  addMarketingActivityOrganization(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/organization/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 参与活动店铺  批量移除：
   * @param {*} data
   * @param options
   */
  batchDeleteMarketingActivityOrganization(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/organization/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取联营汇总数量接口：
   * @param {*} data
   * @param options
   */
  getReportJointSalesStatisticList(data, options) {
    return Request.newRequest({
      url: '/user/report/joint/sales/statistic/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取三十天以上不动销商品明细数据：
   * @param {*} data
   * @param options
   */
  getGoodStockStatisticNotSalesList(data, options) {
    return Request.newRequest({
      url: 'user/report/goods/stock/statistic/not/sales/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取交班记录列表
   * @param {*} data
   * @param options
   */
  getShiftRecordList(data, options) {
    return Request.newRequest({
      url: '/user/shift/record/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 现金上缴  获取上缴现金金额列表：
   * @param {*} data
   * @param options
   */
  getCashRecycleAmountList(data, options) {
    return Request.newRequest({
      url: '/user/cash/recycle/amount/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 现金上缴  上缴现金记录列表：
   * @param {*} data
   * @param options
   */
  getCashRecycleList(data, options) {
    return Request.newRequest({
      url: '/user/cash/recycle/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 现金上缴  审核上缴现金：
   * @param {*} data
   * @param options
   */
  finalAuditCashRecycle(data, options) {
    return Request.newRequest({
      url: '/user/cash/recycle/finalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 现金上缴  获取上缴现金记录详情：
   * @param {*} data
   * @param options
   */
  getCashRecycleDetail(data, options) {
    return Request.newRequest({
      url: '/user/cash/recycle/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取线上商城商品列表（按机构）
   * @param {*} data
   * @param options
   */
  getOnlineShoppingMallGoodsListByOrganization(data, options) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/listByOrganization',
      method: 'post',
      data
    }, options)
  }

  /**
   * 补货订单确认数量
   * @param {*} data
   * @param options
   */
  confirmQuantityPurchaseOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/order/confirmQuantity',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取收货单列表
   * @param {*} data
   * @param options
   */
  userGoodsReceiptList(data, options) {
    return Request.newRequest({
      url: '/user/goodsReceipt/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取收货单信息
   * @param {*} data
   * @param options
   */
  getGoodsReceiptDetail(data, options) {
    return Request.newRequest({
      url: '/user/goodsReceipt/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 收货单一审
   * @param {*} data
   * @param options
   */
  userGoodsReceiptFirstAudit(data, options) {
    return Request.newRequest({
      url: '/user/goodsReceipt/firstAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 收货单二审
   * @param {*} data
   * @param options
   */
  userGoodsReceiptSecondAudit(data, options) {
    return Request.newRequest({
      url: '/user/goodsReceipt/secondAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 收货单终审
   * @param {*} data
   * @param options
   */
  userGoodsReceiptFinalAudit(data, options) {
    return Request.newRequest({
      url: '/user/goodsReceipt/finalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取机构星级列表
   * @param {*} data
   * @param options
   */
  userOrganizationLevelList(data, options) {
    return Request.newRequest({
      url: '/user/organization/level/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量修改机构星级
   * @param {*} data
   * @param options
   */
  userOrganizationLevelBatchUpdate(data, options) {
    return Request.newRequest({
      url: '/user/organization/level/batchUpdate',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取机构星级设置
   * @param {*} data
   * @param options
   */
  userOrganizationLevelSettingDetail(data, options) {
    return Request.newRequest({
      url: '/user/organization/level/setting/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改机构星级设置
   * @param {*} data
   * @param options
   */
  updateOrganizationLevelSetting(data, options) {
    return Request.newRequest({
      url: '/user/organization/level/setting/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取定价系数信息
   * @param {*} data
   * @param options
   */
  userPriceRatioSettingDetail(data, options) {
    return Request.newRequest({
      url: '/user/price/ratio/setting/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改定价系数
   * @param {*} data
   * @param options
   */
  userPriceRatioSettingUpdate(data, options) {
    return Request.newRequest({
      url: '/user/price/ratio/setting/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取供应价格标准列表
   * @param {*} data
   * @param options
   */
  userGoodsSupplyPriceStandardList(data, options) {
    return Request.newRequest({
      url: '/user/goods/supply/price/standard/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取机构星级设置列表
   * @param {*} data
   * @param options
   */
  userOrganizationLevelSettingList(data, options) {
    return Request.newRequest({
      url: '/user/organization/level/setting/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取调价单列表
   * @param {*} data
   * @param options
   */
  userPriceAdjustmentList(data, options) {
    return Request.newRequest({
      url: '/user/priceAdjustment/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加调价单
   * @param {*} data
   * @param options
   */
  userPriceAdjustmentAdd(data, options) {
    return Request.newRequest({
      url: '/user/priceAdjustment/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取调价单信息
   * @param {*} data
   * @param options
   */
  getPriceAdjustmentDetail(data, options) {
    return Request.newRequest({
      url: '/user/priceAdjustment/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 调价单一审
   * @param {*} data
   * @param options
   */
  userPriceAdjustmentFirstAudit(data, options) {
    return Request.newRequest({
      url: '/user/priceAdjustment/firstAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 调价单二审
   * @param {*} data
   * @param options
   */
  userPriceAdjustmentSecondAudit(data, options) {
    return Request.newRequest({
      url: '/user/priceAdjustment/secondAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 调价单三审
   * @param {*} data
   * @param options
   */
  userPriceAdjustmentFinalAudit(data, options) {
    return Request.newRequest({
      url: '/user/priceAdjustment/finalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量更新店型商品
   * @param {*} data
   * @param options
   */
  batchUpdateStoreTypeGoods(data, options) {
    return Request.newRequest({
      url: '/user/storeType/goods/batchUpdate',
      method: 'post',
      data
    }, options)
  }

  /**
   * 店型商品导入
   * @param {*} json
   * @param {*} file
   * @param options
   */
  importStoreTypeGoods(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/storeType/goods/import',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 批量删除店型商品
   * @param {*} data
   * @param options
   */
  batchDeleteStoreTypeGoods(data, options) {
    return Request.newRequest({
      url: '/user/storeType/goods/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取店型商品列表
   * @param {*} data
   * @param options
   */
  getStoreTypeList(data, options) {
    return Request.newRequest({
      url: '/user/storeType/goods/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新店型数据
   * @param {*} data
   * @param options
   */
  updateStoreTypeData(data, options) {
    return Request.newRequest({
      url: '/user/storeType/data/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取店型数据
   * @param {*} data
   * @param options
   */
  getStoreTypeDataDetail(data, options) {
    return Request.newRequest({
      url: '/user/storeType/data/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取金币提现记录
   * @param {*} data
   * @param options
   */
  getGoldExchangeRecordList(data, options) {
    return Request.newRequest({
      url: '/user/gold/exchange/record/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取金币提现详情
   * @param {*} data
   * @param options
   */
  getGoldExchangeRecordDetail(data, options) {
    return Request.newRequest({
      url: '/user/gold/exchange/record/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 审核金币提现
   * @param {*} data
   * @param options
   */
  finalAuditGoldExchangeRecord(data, options) {
    return Request.newRequest({
      url: '/user/gold/exchange/record/finalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取节假日列表
   * @param {*} data
   * @param options
   */
  getHolidayDateList(data, options) {
    data.pageSize = 200
    return Request.newRequest({
      url: '/user/holiday/date/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取机构消费者列表
   * @param {*} data
   * @param options
   */
  getOrganizationConsumerList(data, options) {
    return Request.newRequest({
      url: '/user/organization/consumer/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出机构消费者
   * @param {*} data
   * @param options
   */
  exportOrganizationConsumer(data, options) {
    return Request.newRequest({
      url: '/user/organization/consumer/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 商品进销存每日列表
   * @param {*} data
   * @param options
   */
  getGoodsPurchaseSalesStockDayList(data, options) {
    return Request.newRequest({
      url: '/user/report/goods/purchaseSalesStock/day/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出商品进销存每日报表
   * @param {*} data
   * @param options
   */
  exportGoodsPurchaseSalesStockDay(data, options) {
    return Request.newRequest({
      url: '/user/report/goods/purchaseSalesStock/day/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 商品库存变化记录列表
   * @param {*} data
   * @param options
   */
  getGoodsStockChangeRecordList(data, options) {
    return Request.newRequest({
      url: '/user/goods/stock/change/record/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出商品库存变化记录
   * @param {*} data
   * @param options
   */
  exportGoodsStockChangeRecord(data, options) {
    return Request.newRequest({
      url: '/user/goods/stock/change/record/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取自定义支付通道列表
   * @param {*} data
   * @param options
   */
  getOrganizationPayCustomizePayChannelList(data, options) {
    return Request.newRequest({
      url: '/user/organization/pay/customize/pay/channel/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取加工商品加工质量每日报表
   * @param {*} data
   * @param options
   */
  getProcessGoodsProcessQualityDayList(data, options) {
    return Request.newRequest({
      url: '/user/report/process/goods/process/quality/day/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取设备列表
   * @param {*} data
   * @param options
   */
  getDeviceList(data, options) {
    return Request.newRequest({
      url: '/user/device/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除设备
   * @param {*} data
   * @param options
   */
  deleteDevice(data, options) {
    return Request.newRequest({
      url: '/user/device/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新活动入口图片
   * @param {*} json
   * @param {*} file
   * @param options
   */
  updateMarketingActivityImageEntrance(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/marketing/activity/image/entrance/update',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 更新活动页面背景图片
   * @param {*} json
   * @param {*} file
   * @param options
   */
  updateMarketingActivityImageTop(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/marketing/activity/image/top/update',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 添加个性化配置
   * @param {*} json
   * @param {*} file
   * @param options
   */
  addIndividuationConfig(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/individuation/config/add',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 修改个性化配置
   * @param {*} json
   * @param {*} file
   * @param options
   */
  updateIndividuationConfig(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/individuation/config/update',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 获取潜在客户（店铺）列表
   * @param {*} data
   * @param options
   */
  getPotentialCustomerStoreList(data, options) {
    return Request.newRequest({
      url: '/user/potential/customer/store/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取潜在客户（店铺）详情
   * @param {*} data
   * @param options
   */
  getPotentialCustomerStoreDetail(data, options) {
    return Request.newRequest({
      url: '/user/potential/customer/store/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取评估表列表
   * @param {*} data
   * @param options
   */
  getEvaluationFormList(data, options) {
    return Request.newRequest({
      url: '/user/evaluation/form/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加评估表
   * @param {*} data
   * @param options
   */
  addEvaluationForm(data, options) {
    return Request.newRequest({
      url: '/user/evaluation/form/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改评估表
   * @param {*} data
   * @param options
   */
  updateEvaluationForm(data, options) {
    return Request.newRequest({
      url: '/user/evaluation/form/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取评估表详情
   * @param {*} data
   * @param options
   */
  getEvaluationFormDetail(data, options) {
    return Request.newRequest({
      url: '/user/evaluation/form/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取评估记录列表
   * @param {*} data
   * @param options
   */
  getEvaluationRecordList(data, options) {
    return Request.newRequest({
      url: '/user/evaluation/record/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取评估记录详情
   * @param {*} data
   * @param options
   */
  getEvaluationRecordDetail(data, options) {
    return Request.newRequest({
      url: '/user/evaluation/record/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取其他图片列表
   * @param {*} data
   * @param options
   */
  getOtherPictureList(data, options) {
    return Request.newRequest({
      url: '/user/other/picture/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加权益卡
   * @param {*} json
   * @param {*} file
   * @param options
   */
  addBenefitCard(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/benefit/card/add',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 修改权益卡
   * @param {*} json
   * @param {*} file
   * @param options
   */
  updateBenefitCard(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    if (file) {
      param.append('file', file)
    }
    return Request.newRequest({
      url: '/user/benefit/card/update',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 获取权益卡列表
   * @param {*} data
   * @param options
   */
  getBenefitCardList(data, options) {
    return Request.newRequest({
      url: '/user/benefit/card/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取会员信息列表
   * @param {*} data
   * @param options
   */
  getMemberInfoList(data, options) {
    return Request.newRequest({
      url: '/user/member/info/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取权益卡详情
   * @param {*} data
   * @param options
   */
  getBenefitCardDetail(data, options) {
    return Request.newRequest({
      url: '/user/benefit/card/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加其他文件
   * @param {*} json
   * @param {*} files
   * @param options
   */
  batchAddOtherFile(json, files, options) {
    const param = new FormData() // 创建form对象
    if (undefined !== json) {
      param.append('json', JSON.stringify(json))
    }
    if (undefined !== files) {
      for (let i = 0; i < files.length; i++) {
        param.append('file' + i, files[i])
      }
    }
    return Request.newRequest({
      url: '/user/other/file/batchAdd',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 添加分润设置列表
   * @param {*} data
   * @param options
   */
  addShareProfitSettingOrganization(data, options) {
    return Request.newRequest({
      url: '/user/share/profit/setting/target/organization/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改分润设置列表
   * @param {*} data
   * @param options
   */
  updateShareProfitSettingOrganization(data, options) {
    return Request.newRequest({
      url: '/user/share/profit/setting/target/organization/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除分润设置列表
   * @param {*} data
   * @param options
   */
  deleteShareProfitSettingOrganization(data, options) {
    return Request.newRequest({
      url: '/user/share/profit/setting/target/organization/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取分润设置列表
   * @param {*} data
   * @param options
   */
  getShareProfitSettingOrganizationList(data, options) {
    return Request.newRequest({
      url: '/user/share/profit/setting/target/organization/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取分润设置详情
   * @param {*} data
   * @param options
   */
  getShareProfitSettingOrganizationDetail(data, options) {
    return Request.newRequest({
      url: '/user/share/profit/setting/target/organization/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取分润总表
   * @param {*} data
   * @param options
   */
  getProfitDayList(data, options) {
    return Request.newRequest({
      url: '/user/report/sharing/profit/day/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取分润记录列表
   * @param {*} data
   * @param options
   */
  getSharingProfitRecordList(data, options) {
    return Request.newRequest({
      url: '/user/sharingProfit/record/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加折扣
   * @param {*} data
   * @param options
   */
  addMarketingActivityDiscount(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/discount/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改限时折扣
   * @param {*} data
   * @param options
   */
  updateMarketingActivityDiscount(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/discount/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改营销活动状态
   * @param {*} data
   * @param options
   */
  updateMarketingActivityState(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/updateState',
      method: 'post',
      data
    }, options)
  }

  /**
   * 查询限时折扣明细
   * @param {*} data
   * @param options
   */
  getMarketingActivityDiscountDetail(data, options) {
    return Request.newRequest({
      url: '/user/marketing/activity/discount/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取其他文件列表
   * @param {*} data
   * @param options
   */
  getOtherFileList(data, options) {
    return Request.newRequest({
      url: '/user/other/file/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除其他文件
   * @param {*} data
   * @param options
   */
  deleteOtherFile(data, options) {
    return Request.newRequest({
      url: '/user/other/file/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 发送验证码
   * @param {*} data
   * @param options
   */
  sendSmsVerify(data, options) {
    return Request.newRequest({
      url: '/sendSmsVerify',
      method: 'post',
      data
    }, options)
  }

  /**
   * 查询分销等级列表
   * @param {*} data
   * @param options
   */
  getDistrRankList(data, options) {
    return Request.newRequest({
      url: '/user/distr/rank/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取分销商户列表
   * @param {*} data
   * @param options
   */
  getDistrObjList(data, options) {
    return Request.newRequest({
      url: '/user/distr/obj/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取额度变化明细
   * @param {*} data
   * @param options
   */
  getUserCreditLimitChangeRecordList(data, options) {
    return Request.newRequest({
      url: '/user/credit/limit/change/record/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取销售订单明细列表接口
   * @param {*} data
   * @param options
   */
  getUserSalesOrderItemList(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/item/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出销售订单明细列表订单
   * @param {*} data
   * @param options
   */
  exportSalesOrderItem(data, options) {
    return Request.newRequest({
      url: '/user/sales/order/item/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 优惠汇总报表
   * @param {*} data
   * @param options
   */
  getUserReportPrefSumList(data, options) {
    return Request.newRequest({
      url: '/user/report/fav/sum/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 统计优惠汇总合计金额
   * @param {*} data
   * @param options
   */
  getUserReportPrefSumTotal(data, options) {
    return Request.newRequest({
      url: '/user/report/fav/sum/total',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出优惠汇总报表
   * @param {*} data
   * @param options
   */
  exportUserReportPrefSumList(data, options) {
    return Request.newRequest({
      url: '/user/report/fav/sum/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取优惠明细列表
   * @param {*} data
   * @param options
   */
  getUserOrderFavorableRecordList(data, options) {
    return Request.newRequest({
      url: '/user/order/favorable/record/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出优惠明细列表
   * @param {*} data
   * @param options
   */
  exportOrderFavorableRecord(data, options) {
    return Request.newRequest({
      url: '/user/order/favorable/record/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取信用额度列表
   * @param {*} data
   * @param options
   */
  getCreditLimitList(data, options) {
    return Request.newRequest({
      url: '/user/credit/limit/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取优惠额度汇总报表
   * @param {*} data
   * @param options
   */
  getLimitSumList(data, options) {
    return Request.newRequest({
      url: '/user/report/fav/limit/sum/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 导出优惠额度汇总报表
   * @param {*} data
   */
  exportLimitSumList(data, options) {
    return Request.newRequest({
      url: '/user/report/fav/limit/sum/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取优惠额度明细汇总报表
   * @param {*} data
   * @param options
   */
  getLimitSumDetList(data, options) {
    return Request.newRequest({
      url: '/user/report/fav/limit/sum/det/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取优惠额度明细汇总报表
   * @param {*} data
   */
  exportLimitSumDetList(data, options) {
    return Request.newRequest({
      url: '/user/report/fav/limit/sum/det/export',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新信用额度
   * @param {*} data
   * @param options
   */
  updateCreditLimit(data, options) {
    return Request.newRequest({
      url: '/user/credit/limit/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 更新信用额度
   * @param {*} data
   * @param options
   */
  batchUpdateCreditLimit(data, options) {
    return Request.newRequest({
      url: '/user/credit/limit/batchUpdate',
      method: 'post',
      data
    }, options)
  }

  /**
   * 注册店铺
   * @param {*} data
   * @param options
   */
  registerOrg(data, options) {
    return Request.newRequest({
      url: '/org/register',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品详情 - 微信小程序
   * @param {*} data
   * @param options
   * @param weixinOrganizationId
   */
  wxGetGoodsDetail(data, options, weixinOrganizationId) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/detailByConsumer',
      method: 'post',
      headers: {
        weixinOpenId: weixinOrganizationId,
        weixinOrganizationId: weixinOrganizationId,
        weixinType: '1'
      },
      data
    }, options)
  }

  /**
   * 获取商品详情信息 - 微信小程序
   * @param {*} data
   * @param options
   * @param weixinOrganizationId
   */
  wxGetGoodsDescription(data, options, weixinOrganizationId) {
    return Request.newRequest({
      url: '/user/onlineShoppingMallGoods/descriptionByConsumer',
      method: 'post',
      headers: {
        weixinOpenId: weixinOrganizationId,
        weixinOrganizationId: weixinOrganizationId,
        weixinType: '1'
      },
      data
    }, options)
  }

  /**
   * 添加销售订单 - 微信小程序
   * @param {*} data
   * @param options
   * @param weixinOrganizationId
   */
  wxAddSalesOrder(data, options, weixinOrganizationId) {
    return Request.newRequest({
      url: '/user/sales/order/add',
      method: 'post',
      headers: {
        weixinOpenId: weixinOrganizationId,
        weixinOrganizationId: weixinOrganizationId,
        weixinType: '1'
      },
      data
    }, options)
  }

  /**
   * 添加盘点小组
   * @param {*} data
   * @param options
   */
  addStocktakeGroup(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/group/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除盘点小组
   * @param {*} data
   * @param options
   */
  deleteStocktakeGroup(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/group/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改盘点小组
   * @param {*} data
   * @param options
   */
  updateStocktakeGroup(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/group/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取盘点小组列表
   * @param {*} data
   * @param options
   */
  getStocktakeGroupList(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/group/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取盘点小组详情
   * @param {*} data
   * @param options
   */
  getStocktakeGroupDetail(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/group/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加盘点任务
   * @param {*} data
   * @param options
   */
  addStocktakeTask(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/task/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改盘点任务
   * @param {*} data
   * @param options
   */
  updateStocktakeTask(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/task/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取盘点任务列表
   * @param {*} data
   * @param options
   */
  getStocktakeTaskList(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/task/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取盘点任务详情
   * @param {*} data
   * @param options
   */
  getStocktakeTaskDetail(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/task/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加盘点小组默认负责机构
   * @param {*} data
   * @param options
   */
  batchAddStocktakeGroupDefaultResponsibleOrganization(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/group/defaultResponsibleOrganization/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量删除盘点小组默认负责机构
   * @param {*} data
   * @param options
   */
  batchDeleteStocktakeGroupDefaultResponsibleOrganization(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/group/defaultResponsibleOrganization/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取盘点小组默认负责机构列表
   * @param {*} data
   * @param options
   */
  getStocktakeGroupDefaultResponsibleOrganizationList(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/group/defaultResponsibleOrganization/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量添加盘点单
   * @param {*} data
   * @param options
   */
  batchAddStocktakeOrder(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/order/batchAdd',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量删除盘点单
   * @param {*} data
   * @param options
   */
  batchDeleteStocktakeOrder(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/order/batchDelete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 批量修改盘点单
   * @param {*} data
   * @param options
   */
  batchUpdateStocktakeOrder(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/order/batchUpdate',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取盘点单列表
   * @param {*} data
   * @param options
   */
  getStocktakeOrderList(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/order/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取盘点单详情
   * @param {*} data
   * @param options
   */
  getStocktakeOrderDetail(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/order/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取盘点任务商品列表
   * @param {*} data
   * @param options
   */
  getStocktakeTaskGoodsList(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/task/goods/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取盘点单商品列表
   * @param {*} data
   * @param options
   */
  getStocktakeOrderGoodsList(data, options) {
    return Request.newRequest({
      url: '/user/stocktake/order/goods/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加商品指定时间允许采购列表
   * @param {*} data
   * @param options
   */
  addGoodsSpecifiedTimeAllowPurchase(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/allowPurchase/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改商品指定时间允许采购列表
   * @param {*} data
   * @param options
   */
  updateGoodsSpecifiedTimeAllowPurchase(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/allowPurchase/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除商品指定时间允许采购列表
   * @param {*} data
   * @param options
   */
  deleteGoodsSpecifiedTimeAllowPurchase(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/allowPurchase/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品指定时间允许采购列表
   * @param {*} data
   * @param options
   */
  getGoodsSpecifiedTimeAllowPurchaseList(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/allowPurchase/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品指定时间允许采购详情
   * @param {*} data
   * @param options
   */
  getGoodsSpecifiedTimeAllowPurchaseDetail(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/allowPurchase/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加商品指定时间增加采购数量列表
   * @param {*} data
   * @param options
   */
  addGoodsSpecifiedTimeAddPurchaseQuantity(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/addPurchaseQuantity/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 修改商品指定时间增加采购数量列表
   * @param {*} data
   * @param options
   */
  updateGoodsSpecifiedTimeAddPurchaseQuantity(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/addPurchaseQuantity/update',
      method: 'post',
      data
    }, options)
  }

  /**
   * 删除商品指定时间增加采购数量列表
   * @param {*} data
   * @param options
   */
  deleteGoodsSpecifiedTimeAddPurchaseQuantity(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/addPurchaseQuantity/delete',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品指定时间增加采购数量列表
   * @param {*} data
   * @param options
   */
  getGoodsSpecifiedTimeAddPurchaseQuantityList(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/addPurchaseQuantity/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取商品指定时间增加采购数量详情
   * @param {*} data
   * @param options
   */
  getGoodsSpecifiedTimeAddPurchaseQuantityDetail(data, options) {
    return Request.newRequest({
      url: '/user/goods/specifiedTime/addPurchaseQuantity/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取支付分账明细列表
   * @param {*} data
   * @param options
   */
  getPayProfitSharingItemList(data, options) {
    return Request.newRequest({
      url: '/user/pay/profitSharing/item/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购结算业务单列表
   * @param {*} data
   * @param options
   */
  getPurchaseSettlementBusinessOrderList(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/businessOrder/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购结算业务单详情
   * @param {*} data
   * @param options
   */
  getPurchaseSettlementBusinessOrderDetail(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/businessOrder/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 添加采购结算单
   * @param {*} data
   * @param options
   */
  addPurchaseSettlementOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/order/add',
      method: 'post',
      data
    }, options)
  }

  /**
   * 一审采购结算单
   * @param {*} data
   * @param options
   */
  firstAuditPurchaseSettlementOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/order/firstAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 二审采购结算单
   * @param {*} data
   * @param options
   */
  secondAuditPurchaseSettlementOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/order/secondAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 三审采购结算单
   * @param {*} data
   * @param options
   */
  finalAuditPurchaseSettlementOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/order/finalAudit',
      method: 'post',
      data
    }, options)
  }

  /**
   * 对账采购结算单
   * @param {*} data
   * @param options
   */
  confirmPurchaseSettlementOrder(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/order/confirm',
      method: 'post',
      data
    }, options)
  }

  /**
   * 采购结算单上传发票
   * @param {*} json
   * @param {*} file
   * @param options
   */
  uploadInvoicePurchaseSettlementOrder(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    param.append('file', file)
    return Request.newRequest({
      url: '/user/purchase/settlement/order/uploadInvoice',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 采购结算单上传支付凭证
   * @param {*} json
   * @param {*} file
   * @param options
   */
  uploadPaymentVoucherPurchaseSettlementOrder(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    param.append('file', file)
    return Request.newRequest({
      url: '/user/purchase/settlement/order/uploadPaymentVoucher',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 读取Excel表格
   * @param {*} json
   * @param {*} file
   * @param options
   */
  readExcel(json, file, options) {
    const param = new FormData() // 创建form对象
    if (json) {
      param.append('json', JSON.stringify(json))
    }
    param.append('file', file)
    return Request.newRequest({
      url: '/user/document/read/excel',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: param
    }, options)
  }

  /**
   * 获取采购结算单列表
   * @param {*} data
   * @param options
   */
  getPurchaseSettlementOrderList(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/order/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购结算单详情
   * @param {*} data
   * @param options
   */
  getPurchaseSettlementOrderDetail(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/order/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取采购结算单明细列表
   * @param {*} data
   * @param options
   */
  getPurchaseSettlementOrderItemList(data, options) {
    return Request.newRequest({
      url: '/user/purchase/settlement/order/item/list',
      method: 'post',
      data
    }, options)
  }


  /**
   * 获取充值活动列表
   * @param {*} data
   * @param options
   */
  getRechargeActivityList(data, options) {
    return Request.newRequest({
      url: '/user/member/recharge/activity/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取充值活动详情
   * @param {*} data
   * @param options
   */
  getRechargeActivityDetail(data, options) {
    return Request.newRequest({
      url: '/user/member/recharge/activity/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取会员管理易购卡列表
   * @param {*} data
   * @param options
   */
  getMemberCardList(data, options) {
    return Request.newRequest({
      url: '/user/member/card/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取会员管理易购卡概况统计
   * @param {*} data
   * @param options
   */
  getCardOverview(data, options) {
    return Request.newRequest({
      url: '/user/member/card/statistics/info',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取会员信息列表
   * @param {*} data
   * @param options
   */
  getMemberInfoZgList(data, options) {
    return Request.newRequest({
      url: '/user/member/info/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取充值订单列表
   * @param {*} data
   * @param options
   */
  getStoreRechargeList(data, options) {
    return Request.newRequest({
      url: '/user/member/recharge/order/list',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取充值订单详情
   * @param {*} data
   * @param options
   */
  getStoreRechargeDetail(data, options) {
    return Request.newRequest({
      url: '/user/member/recharge/order/detail',
      method: 'post',
      data
    }, options)
  }

  /**
   * 获取易购卡明细列表
   * @param {*} data
   * @param options
   */
  getCardRecord(data, options) {
    return Request.newRequest({
      url: '/user/member/card/change/record/list',
      method: 'post',
      data
    }, options)
  }
}

const api = new Api()
export default api
